﻿

using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;


public class BLL_tbl_siconide_furnace
{
    public BLL_tbl_siconide_furnace()
    {

    }

    public List<tbl_siconide_furnace> select(int ID)
    {
        DAL_tbl_siconide_furnace dal = new DAL_tbl_siconide_furnace();
        return dal.select(ID);
    }

    public List<tbl_siconide_furnace> selectAll()
    {
        DAL_tbl_siconide_furnace dal = new DAL_tbl_siconide_furnace();
        return dal.selectAll();
    }
    public DataTable selectAllForGrid()
    {
        DAL_tbl_siconide_furnace dal = new DAL_tbl_siconide_furnace();
        return dal.selectAllForGrid();
    }
    public bool insert(tbl_siconide_furnace tbl)
    {
        DAL_tbl_siconide_furnace dal = new DAL_tbl_siconide_furnace();
        int i = 0;
        i = dal.insert(
            tbl.Start_Date
, tbl.Operator_Loading
, tbl.Finish_Date
, tbl.Operator_Unloading
, tbl.Charge_Number
, tbl.N2_K_m3_start
, tbl.Ar_Pressure_start
, tbl.H2_Pressure_start
, tbl.He_Pressure_start
, tbl.N2_K_m3_end
, tbl.Ar_Pressure_end
, tbl.H2_Pressure_end
, tbl.He_Pressure_end
, tbl.Remark
, tbl.CREATED_BY
, tbl.CREATED_DATE
        );

        return Convert.ToBoolean(i);
    }


    public bool update(tbl_siconide_furnace tbl)
    {
        DAL_tbl_siconide_furnace dal = new DAL_tbl_siconide_furnace();
        int i = 0;
        i = dal.update(
            tbl.ID
, tbl.Start_Date
, tbl.Operator_Loading
, tbl.Finish_Date
, tbl.Operator_Unloading
, tbl.Charge_Number
, tbl.N2_K_m3_start
, tbl.Ar_Pressure_start
, tbl.H2_Pressure_start
, tbl.He_Pressure_start
, tbl.N2_K_m3_end
, tbl.Ar_Pressure_end
, tbl.H2_Pressure_end
, tbl.He_Pressure_end
, tbl.Remark
, tbl.UPDATED_BY
, tbl.UPDATED_DATE
            );

        return Convert.ToBoolean(i);
    }


    public bool delete(tbl_siconide_furnace tbl)
    {
        DAL_tbl_siconide_furnace dal = new DAL_tbl_siconide_furnace();
        int i = 0;
        i = dal.delete(
                tbl.ID
        );

        return Convert.ToBoolean(i);
    }


}

